package com.lhj.security.service.impl;

import com.lhj.security.dao.UserDao;
import com.lhj.security.entity.SysUser;
import com.lhj.security.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author linghaijin
 * @date 2020-04-14 8:53
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public SysUser getUserByName(String name) {
        return userDao.getUserByUsername(name);
    }
}
